package com.xiaotao.util;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    OK(200, "操作成功"),
    USER_6(1006, "账号失效"),
    VERIFY(200, "验证码已发送，1分钟后过期"),
    NO1(400, "登录状态无效，请重新登录"),
    NO2(400, "参数错误：目标用户ID和房间号不能为空"),
    NO3(400, "不能和自己发起私聊"),
    NO4(400, "该私聊房间人数已满，无法加入"),
    FAIL(400, "操作失败");
    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
